<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('订单详情')"/>
    <th:block th:include="include :: jquery-smartwizard-css"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content p-xl">
                <div class="row">
                    <div class="col-sm-6">
                        <!-- <address>
                               <strong>北京百度在线网络技术有限公司</strong><br>
                               北京市海淀区上地十街10号<br>
                               <abbr title="Phone">总机：</abbr> (+86 10) 5992 8888
                           </address>-->
                    </div>

                    <div class="col-sm-6 text-right">
                        <h4>订单编号：</h4>
                        <h4 class="text-navy">[[*{orderNo}]]</h4>
                        <p><strong>桌位号：</strong> [[${restOrder.deskNum}]]</p>
                        <p>
                            <span><strong>日期：</strong> [[${orderCreateTime}]]</span>
                        </p>
                    </div>
                </div>

                <div class="table-responsive m-t">
                    <table class="table invoice-table">
                        <thead>
                        <tr>
                            <th>商品清单</th>
                            <th>数量</th>
                            <th>单价</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="goods : ${orderGoodsList}">
                            <td>
                                <div><strong>[[${goods.goodsName}]]</strong>
                                </div>
                            </td>
                            <td>[[${goods.goodsNum}]]</td>
                            <td>[[${goods.goodsMoney}]]</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /table-responsive -->

                <table class="table invoice-total">
                    <tbody>
                    <tr>
                        <td><strong>用餐人数：</strong>
                        </td>
                        <td>&yen;[[${restOrder.useMunber}]]</td>
                    </tr>
                    <tr>
                        <td><strong>总价：</strong>
                        </td>
                        <td>&yen;[[${restOrder.money}]]</td>
                    </tr>
                    <!--<tr>
                        <td><strong>支付会员编号：</strong>
                        </td>
                        <td>&yen;[[${restOrder.orderNo}]]</td>
                    </tr>-->
                    <tr>
                        <td><strong>实际支付金额：</strong>
                        </td>
                        <td>&yen;[[${restOrder.payMoney}]]</td>
                    </tr>
                    </tbody>
                </table>
                <!-- 打印网页时通过hidden-print隐藏元素 -->
                <div class="text-right hidden-print">
                    <button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
                </div>

                <!--<div class="well m-t"><strong>注意：</strong> 请在30日内完成付款，否则订单会自动取消。
                </div>-->
            </div>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    function printPage() {
        window.print();
    }
</script>
</body>
</html>